<template>
  <el-button :loading="isLoading" :type="type" @click="clickbtn">{{btnText}}</el-button>
</template>

<script>
  import ala from 'ala'
export default {
    props: {
      btnText: {
        type: String,
        default: '保存'
      }, // 按钮显示文字
      type: {
        type: String,
        default: 'primary'
      }, // 按钮类型与el-button同步
      isLoading: {
        type: Boolean,
        default: false
      } // 正在加载中，默认为false
    },
    methods: {
      clickbtn () {
        this.$emit('change')
      }
    }
  }
</script>

<style lang="scss" scoped>
</style>
